﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="SubAdminCreation.ascx.cs" Inherits="Controls_SubAdminCreation" %>

<%@ Register Assembly="MSCaptcha" Namespace="MSCaptcha" TagPrefix="cc1" %>

<asp:Panel ID="pnladmincreation" runat="server">

<!-- box section open -->
        <div class="admn_frm_row">
          <div class="data">Title of Courtesy</div>
          <div class="field">
            <asp:DropDownList ID="combotoc" Runat="server" 
                                Width="265px" >
                                <asp:ListItem Text="Select." Value="Select."></asp:ListItem>
                                <asp:ListItem Text="Mr." Value="Mr."></asp:ListItem>
                                <asp:ListItem Text="Ms." Value="Ms."></asp:ListItem>
                                <asp:ListItem Text="Mrs." Value="Mrs."></asp:ListItem>
                                <asp:ListItem Text="Dr." Value="Dr."></asp:ListItem>                                
                            </asp:DropDownList>
          </div>
                <asp:CompareValidator ID="rqdtoc" runat="server" 
                     ControlToValidate="combotoc" ValidationGroup="All" CssClass="admn_frm_error"
                     ErrorMessage="* Please select Title of Courtesy." Operator="NotEqual" 
                     ValueToCompare="Select." SetFocusOnError="True" Display="Static">
                </asp:CompareValidator>
        </div>
        
        
    
        <div class="admn_frm_row">
          <div class="data">First name</div>
          <div class="field">
            <asp:TextBox ID="txtfirstname" runat="server" 
                    BackColor="Transparent"  ForeColor="#919191" Width="262px" ValidationGroup="All">
                    </asp:TextBox>
          </div>
            <asp:RequiredFieldValidator ID="rqdfirstname" runat="server" CssClass="admn_frm_error"
                 ErrorMessage="* Please enter First Name." ControlToValidate="txtfirstname" 
                 ValidationGroup="All" SetFocusOnError="True">
            </asp:RequiredFieldValidator>
        </div>        
        
        <div class="admn_frm_row">
          <div class="data">Last name</div>
          <div class="field">
            <asp:TextBox ID="txtlastname" runat="server" 
                            BackColor="Transparent"  ForeColor="#919191" Width="262px">
                    </asp:TextBox>
          </div>
        </div>
        
        <div class="admn_frm_row">
          <div class="data">Email address</div>
          <div class="field">
            <asp:TextBox ID="txtemailaddress" runat="server" 
            BackColor="Transparent"  ForeColor="#919191" Width="262px" ValidationGroup="All">
                    </asp:TextBox>
          </div>
            <asp:RequiredFieldValidator ID="rqdemailaddress" runat="server" CssClass="admn_frm_error"
                 ErrorMessage="* Please enter Email Address" ControlToValidate="txtemailaddress" 
                 ValidationGroup="All" SetFocusOnError="True" Display="Dynamic">
            </asp:RequiredFieldValidator><br/>
            <asp:RegularExpressionValidator ID="rqdcorrectemailaddress" runat="server" CssClass="admn_frm_error"
                 ControlToValidate="txtemailaddress" 
                 ErrorMessage="* Please enter Email Address in the correct format (wayne@gtus.com)" 
                 SetFocusOnError="True" 
                 ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                 ValidationGroup="All"  Display="Dynamic">
            </asp:RegularExpressionValidator>
        </div>
        
        
        <div class="admn_frm_row">
          <div class="data">User  name</div>
          <div class="field">
            <asp:TextBox ID="txtusername" runat="server" 
            BackColor="Transparent"  ForeColor="#919191" Width="262px" ValidationGroup="All">
                    </asp:TextBox>
          </div>
            <asp:RequiredFieldValidator ID="rqdusername" runat="server" CssClass="admn_frm_error"
                 ErrorMessage="* Please enter User Name" ControlToValidate="txtusername" 
                 ValidationGroup="All" SetFocusOnError="True">
            </asp:RequiredFieldValidator>
        </div>
        
        
        
        <div class="admn_frm_row">
          <div class="data">Password</div>
          <div class="field">
            <asp:TextBox ID="txtpassword" runat="server" 
                            BackColor="Transparent"  ForeColor="#919191" Width="262px" TextMode="Password" ontextchanged="txtpassword_TextChanged">
                    </asp:TextBox>
          </div>
        </div>
        
        
        
        <div class="admn_frm_row">
          <div class="data">Confirm password</div>
          <div class="field">
            <asp:TextBox ID="txtconfirmpassword" runat="server" 
                            BackColor="Transparent"  ForeColor="#919191" Width="262px" TextMode="Password" ontextchanged="txtpassword_TextChanged">
                    </asp:TextBox>
          </div>
        </div>
        
        
        
        <div class="admn_frm_row">
          <div class="data">Work phone</div>
          <div class="field">
            <asp:TextBox ID="txtworkphone" runat="server" 
            BackColor="Transparent"  ForeColor="#919191" Width="262px" ValidationGroup="All">
                    </asp:TextBox>
          </div>
            <asp:RequiredFieldValidator ID="rqdworkphone" runat="server" CssClass="admn_frm_error"
                 ErrorMessage="* Please enter Contact Number" ControlToValidate="txtworkphone" 
                 ValidationGroup="All" SetFocusOnError="True">
            </asp:RequiredFieldValidator><br/>
            <asp:RegularExpressionValidator ID="rqdcorrectworkphone" runat="server" CssClass="admn_frm_error"
                 ErrorMessage="* Please enter the contact number in the correct format (xxx-xxx-xxxx)" 
                 ControlToValidate="txtworkphone" 
                 ValidationExpression="((\(\d{3}\) ?)|(\d{3}-))?\d{3}-\d{4}" 
                 ValidationGroup="All">
            </asp:RegularExpressionValidator>
        </div>
        
        
        <div class="admn_frm_row">
          <div class="data">Mobile phone</div>
          <div class="field">
            <asp:TextBox ID="txtmobilephone" runat="server" 
              ForeColor="#919191" Width="262px" ValidationGroup="All">
                    </asp:TextBox>
          </div>
            <asp:RequiredFieldValidator ID="rqdmobilenumber" runat="server" CssClass="admn_frm_error"
                 ErrorMessage="* Please enter Mobile Number" ControlToValidate="txtmobilephone" 
                 ValidationGroup="All" SetFocusOnError="True">
            </asp:RequiredFieldValidator><br/>
            <asp:RegularExpressionValidator ID="rqdcorrectmobilenumber" runat="server" CssClass="admn_frm_error"
                 ErrorMessage="* Please enter the contact number in the correct format (xxx-xxx-xxxx)" 
                 ControlToValidate="txtmobilephone" 
                 ValidationExpression="((\(\d{3}\) ?)|(\d{3}-))?\d{3}-\d{4}" 
                 ValidationGroup="All">
            </asp:RegularExpressionValidator>
        </div>
        
        
        
        <div class="admn_frm_row clearpad">
          <div class="data">Roles</div>
          <div class="field">
            <ul>
              <li>
                <asp:CheckBoxList ID="cboroleslist" runat="server" ForeColor="#003399" onselectedindexchanged="cboroleslist_SelectedIndexChanged">
                     
                </asp:CheckBoxList>
              </li>
            </ul>
          </div>
        </div>
        
        <div class="admn_frm_row">
          <div class="data">Is active</div>

          <div class="field">
            <asp:CheckBox ID="chkboxIsActive" runat="server" Checked="true" />
          </div>
        </div>
        
        <div class="admn_frm_row">
          <div class="data"><asp:Label ID="lblcaptcha" runat="server" Text="Please enter the code shown below" Visible="true"></asp:Label></div>
          <div class="field">
            <!--<p><span id="ctl00_ContentPlaceHolder1_SubAdminCreation1_lblcaptcha">Please enter the code shown below</span></p>-->

            <cc1:CaptchaControl ID="CaptchaControl1" runat="server" CaptchaHeight="40" CaptchaWidth="140"
                     CaptchaLineNoise="None" CaptchaMinTimeout="10" CaptchaMaxTimeout="240" CaptchaBackgroundNoise="Medium"/>
                    
                    <asp:TextBox ID="txtcaptcha" runat="server" Width="110px" Height="20"></asp:TextBox>
                    <p><asp:Label ID="Label1" runat="server" Text="" ></asp:Label></p>
          </div>
        </div>
        
        
        
        

      
    <!-- box section close -->

</asp:Panel>

